*** Settings ***
Documentation    存放用户相关的代码： 登录，注册
Library         SeleniumLibrary


#设置变量 变量名使用 ${} 形式
*** Variables ***
${mainpage}         http://49.233.108.117:3000/
${loginurl}         http://49.233.108.117:3000/signin
${chromedriver}     ./drivers/chromedriver.exe

*** Keywords ***
打开Chrome浏览器到首页
    Open Browser    url=${mainpage}     browser=chrome      remote_url=http://49.233.108.117:4444/wd/hub
    Set Screenshot Directory    ./screenshots

关闭浏览器
    Close Browser

跳转到注册页面
    Click Element   link:注册

跳转到登录页面
    Click Element   link:登录

截取当前图片
    Capture Page Screenshot

验证文本
    [Arguments]     ${arg1}     ${arg2}
    Should Be Equal     ${arg1}     ${arg2}